package com.yq.exception;

import com.yq.model.BaseVO;
import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.bind.annotation.RestControllerAdvice;

/**
 * @author: 杨庆
 * @since: 2022.9.3 15:47
 * @description:
 */
@RestControllerAdvice
public class MyException {

    @ExceptionHandler(SystemsException.class)
    public BaseVO doSystemExceprion(Exception e){
        return BaseVO.error("错误"+e.getMessage());
    }

}
